
<?php
	$info = $this->info;
	$date = new Zend_Date( $info->birthday , 'yyyy-MM-dd');
?>
<table>
<tr>
<td>
	<form action ="/be/infomation/avatar" method="post" enctype="multipart/form-data"  >
	<table style="vertical-align: bottom; ">
	<tr>
		<td><div id="avatar" style="width: 200px;" >
			<img style="width: 100%" src="/images/avatar/<?php echo $info->avatar ?>" width = 100px/></div>
		</td>
		
	</tr>
	
	<tr>
		<td><input type="file" name="avatar" id="avatar" /></td>
	</tr>
	<tr>
		<td><input type="submit" value="CHANGE AVATAR" /></td>
	</tr>
	
	</table>
	
	</form>
</td>
<td>
	<div ">
	<form action="/be/infomation/save" name="change" method="post" enctype="multipart/form-data" >
	<table>
	<tr>
		<td>full name:</td><td><input type="text" id = "fullname" name = "fullname" class="textbox" value ="<?php echo $info->fullname ?>" autocomplete = off/><div  ></div></td><td><div id="errorfullname"></div></td>
	</tr>
	<tr>
		<td>email:</td><td><input type="text" id = "email" name = "email" class="textbox"  value=<?php echo $this->info->email ?> /><div  ></div></td><td><div id="erroremail"></div></td>
	</tr>
	<tr>
		<td>address:</td><td id="celladdress"><input type="text" id = "address" name = "address" value ="<?php echo $this->address ?>" autocomplete = off /><div id="addSelect"  ></div></td><td><div id="erroraddress"></div></td>
		
	</tr>
	<tr>
		<td>gender:</td><td><input type="radio" name="sex" value="male" <?php if( $info->sex =="male"  )echo "checked";?>/> Male <input type="radio" name="sex" value="female" <?php if( $info->sex =="female"  )echo "checked";?>/> Female</td><td><div id="errorgender"></div></td>
	</tr>
	<tr>
		<td>date of birth: </td><td id="dob" ><input type="text" value="<?php echo $date->toString(Zend_Date::DAY );?>" name = "day" id="day" maxlength="2"  size=4 class="dob" />
	    							-<input type="text" value="<?php echo $date->toString(Zend_Date::MONTH );?>" name = "month" id="month" maxlength="2" size=4 class="dob" />
	                                -<input type="text" value="<?php echo $date->toString(Zend_Date::YEAR );?>" name = "year" id="year" maxlength="4" size=6 class="dob"  /></td><td><div id="errordob"></div></td>
	</tr>
	<tr>
		<td>music:</td><td style="border: #BDC7D8 solid 1px; background-color: #ffffff;"><span id="musiccell" ></span> <input type="text" id = "music" style="outline: 0px;" name = "music" value="<?php echo $info->music ?>" style="width: 150px;" autocomplete = off /><div id="musSelect"  ></div></td><td><div id="errormusic"></div></td>
	</tr>
	<tr>
		<td>sport:</td><td style="border: #BDC7D8 solid 1px;background-color: #ffffff;"><span id="sportcell" ></span> <input type="text" id = "sport" name = "sport" value="<?php echo $info->sport ?>" autocomplete = off /><div id="spoSelect"  ></div></td><td><div id="errorsport"></div></td>
	</tr>
	<tr>
	  	<td colspan="2"> <input type = "button" value="CHANGE PROFILE" onclick = "savechange(); "id="submit"/>
	  					</td>
	</tr>
	<tr>
		<td colspan = 2 ><div id="check"></div></td>
	</tr>
	</table>
	</form>
	</div>
</td>
</tr>
</table>
